import java.util.ArrayList;
import java.util.Arrays;

public class testString {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("q");
        arrayList.add("q");
        String[] a =new String[arrayList.size()];
        for (int i=0;i<arrayList.size();i++){
            a[i]="s";
        }
        System.out.println(Arrays.toString(a));
    }
}
